package cn.eonshine.cuba.securitybackup.modular.log.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alan
 * @since 2018-08-11
 */
@TableName("inf_log")
public class SecurityLog extends Model<SecurityLog> {

    private static final long serialVersionUID = 1L;

    /**
     * Primary key
     */
    @TableId("ID")
    private String id;
    /**
     * Operator date time
     */
    @TableField("OPERATE_TIME")
    private Date operateTime;
    /**
     * count total 
     */
    @TableField("TOTAL")
    private BigDecimal total;
    /**
     * send or receive success total
     */
    @TableField("SUCCESS_NUM")
    private BigDecimal successNum;
    /**
     * status: 200 - success, 400- failure
     */
    @TableField("STATUS")
    private String status;
    /**
     * process id
     */
    @TableField("PROCESS_ID")
    private String processId;
    /**
     * 接口名称
     */
    @TableField("OPERATE_URL")
    private String operateUrl;
    
    //临时字段
    @TableField(exist = false)
    private String opData;
    
    //临时字段
    @TableField(exist = false)
    private String exception;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(BigDecimal successNum) {
        this.successNum = successNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getOperateUrl() {
		return operateUrl;
	}

	public void setOperateUrl(String operateUrl) {
		this.operateUrl = operateUrl;
	}

	public String getOpData() {
		return opData;
	}

	public void setOpData(String opData) {
		this.opData = opData;
	}

	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}



}
